package cn.edu.njuit.webserver.securityserver.apis;

import cn.edu.njuit.webserver.securityserver.common.Result;
import com.alibaba.fastjson.JSONObject;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api")
public class HelloController {
    @GetMapping("/hello")
    public Result hello(){
        JSONObject result=new JSONObject();
        result.put("result","Hello World.");
        return Result.success(result);
    }
}
